package com.estate.utils;

public class BillingStateUtil {
	
	public static String getBillingStateString(int stateInt){
		
		String stateString="";
		if(stateInt==1){
			stateString="未开票";
		} else if(stateInt==2){
			stateString="未收款";
		} else if(stateInt==3){
			stateString="未核销";
		} else if(stateInt==4){
			stateString="核销不通过";
		} else if(stateInt==5){
			stateString="核销通过";
		}
		return stateString;
	}
	
	public static int getBillingStateInt(String stateString){
		int stateInt=0;
		if("未开票".equals(stateString)){
			stateInt=1;
		} else if("未收款".equals(stateString)){
			stateInt=2;
		} else if("未核销".equals(stateString)){
			stateInt=3;
		} else if("核销不通过".equals(stateString)){
			stateInt=4;
		} else if("核销通过".equals(stateString)){
			stateInt=5;
		}
		return stateInt;
	}

}
